package com.example.cafe.work.service;

import com.example.cafe.work.dto.Result;
import com.example.cafe.work.model.SeckillTicket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.cafe.work.model.Ticket;

/**
 * <p>
 * 秒杀优惠券表，与优惠券是一对一关系 服务类
 * </p>
 *
 * @author hua
 * @since 2024-09-23
 */
public interface SeckillTicketService extends IService<SeckillTicket> {

    void addSeckillVoucher(Ticket ticket);

    Result seckill(Integer ticketId);
}
